package com.jxc.model.po;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/***********************************************************************
 * Module:  OrderReturnlistItem.java
 * Author:  Tino
 * Purpose: Defines the Class OrderReturnlistItem
 ***********************************************************************/

/**
 * 进货退货单明细
 * 
 * @pdOid 02d00966-0aa9-4949-aa52-fc9fa9936ef7
 */
@Entity
@Table(name = "RKGL_ORDERRETURNLIST_ITEM")
public class OrderReturnlistItem extends IdEntity implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = -1755944375157425075L;
	/**
	 * 商品
	 * 
	 * @pdOid fa6f9b36-0afa-456c-b1c3-4ecc45d48dd1
	 */
	private Goods goods;
	/**
	 * 退货数量
	 * 
	 * @pdOid 06bad257-9fb7-4ab3-b86f-50a58ea8d9ce
	 */
	private Integer num;
	/**
	 * 退货价格
	 */
	private Double returnPrice;
	/**
	 * 退货总额
	 * 
	 * @pdOid 00d88f1f-3bb2-41ab-91c1-54a20f2d54a9
	 */
	private Double total;
	/**
	 * 进货退货单
	 * 
	 * @pdOid c04e9023-4f8d-4bb0-ab0f-323c7ff280bc
	 */
	private OrderReturnlist orderReturnlist;
	/**
	 * 备注
	 * 
	 */
	private String remark;

	@Column(name="REMARK")
	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	@ManyToOne
	@JoinColumn(name = "GOODS_ID")
	public Goods getGoods() {
		return goods;
	}

	public void setGoods(Goods goods) {
		this.goods = goods;
	}

	@Column(name="NUM")
	public Integer getNum() {
		return num;
	}

	public void setNum(Integer num) {
		this.num = num;
	}
	@Column(name="RETURN_PRICE")
	public Double getReturnPrice() {
		return returnPrice;
	}

	public void setReturnPrice(Double returnPrice) {
		this.returnPrice = returnPrice;
	}

	@Column(name = "TOTAL", length = 10, precision = 2)
	public Double getTotal() {
		return total;
	}

	public void setTotal(Double total) {
		this.total = total;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "ORDERRETURNLIST_ID")
	public OrderReturnlist getOrderReturnlist() {
		return orderReturnlist;
	}

	public void setOrderReturnlist(OrderReturnlist orderReturnlist) {
		this.orderReturnlist = orderReturnlist;
	}

}